package com.want.buss.interfaces;

import java.io.FileNotFoundException;

import org.junit.runners.model.InitializationError;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.Log4jConfigurer;

/**
 * 加载log4j配置文件
 * @author 00323357
 * @date   2017年12月14日
 */
public class JUnit4ClassRunner extends SpringJUnit4ClassRunner {  
	  
    public JUnit4ClassRunner(Class<?> clazz) throws InitializationError {
		super(clazz);
	}

	static {  
        try {  
            Log4jConfigurer.initLogging("classpath:properties/log4j.properties");  
        } catch (FileNotFoundException ex) {  
            System.err.println("Cannot Initialize log4j");  
        }  
    }  
  
}  
